package com.umpay.dto.merBusi.req.consume;

import org.hibernate.validator.constraints.NotEmpty;

import com.umpay.annotation.Pattern;
import com.umpay.dto.merBusi.req.CommonBusiReq;

/**
 * 
 * @ClassName: ConsumeDebitcardConfirmBusiReq  
 * @Description: 银行卡消费确认业务请求类 
 * @author liuhaidong  
 * @date Jan 22, 2018
 */
public class ConsumeDebitcardConfirmBusiReq extends CommonBusiReq {
	
	
	
	@NotEmpty(message = "联动交易号不能为空")
	@Pattern(message="联动交易号格式不正确")
	private String tradeNo;	//联动交易号	变长 16
	
	@NotEmpty(message = "验证码不能为空")
	@Pattern(message="验证码格式不正确")
	private String verifyCode;	//验证码	变长8
	
	@NotEmpty(message = "金额不能为空")
	@Pattern(message="金额格式不正确")
	private String amount;	//变长13	金额
	
	@NotEmpty(message = "业务产品号不能为空")
	@Pattern(message="业务产品号格式不正确")
	private String bproductId;	//变长8	业务产品号
	
	@NotEmpty(message = "支付产品号不能为空")
	@Pattern(message="支付产品号格式不正确")
	private String pproductId;	//定长8	产品号
	private String merId;	//商户号
	
	
	public String getTradeNo() {
		return tradeNo;
	}
	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}
	public String getVerifyCode() {
		return verifyCode;
	}
	public void setVerifyCode(String verifyCode) {
		this.verifyCode = verifyCode;
	}
	public String getAmount() {
		return amount;
	}
	public void setAmount(String amount) {
		this.amount = amount;
	}
	
	public String getBproductId() {
		return bproductId;
	}
	public void setBproductId(String bproductId) {
		this.bproductId = bproductId;
	}
	public String getPproductId() {
		return pproductId;
	}
	public void setPproductId(String pproductId) {
		this.pproductId = pproductId;
	}
	
	public String getMerId() {
		return merId;
	}
	public void setMerId(String merId) {
		this.merId = merId;
	}
	@Override
	public String toString() {
		return "ConsumeDebitcardConfirmBusiReq [tradeNo=" + tradeNo + ", verifyCode=" + verifyCode + ", amount="
				+ amount + ", bproductId=" + bproductId + ", pproductId=" + pproductId + ", merId=" + merId + "]";
	}
}
